<?
/*
***************************************************************************************
Arquivo: conexao.php
---------------------------------------------------------------------------------------
Objetivo: Conecta a base de dados do PostgreSQL.
***************************************************************************************
*/

if(!@($conexao = pg_pconnect("host=127.0.0.1 dbname=unedcg port=5432 user=postgres password=postgres"))) {
	print "N�o foi possivel estabelecer uma conex�o com o banco de dados.";
	die;
}


$select = "
set client_encoding to 'LATIN1';
set datestyle='sql, european';";
$qrycnx = pg_exec($conexao, $select);

?>
